if (UNIX)
    file(GLOB_RECURSE LAB3_SERVER_SRC_CXX CONFIGURE_DEPENDS src/cpp/fserver.cpp src/cpp/*.hpp)
    add_executable(LAB3_SERVER_CXX ${LAB3_SERVER_SRC_CXX})
    target_link_libraries(LAB3_SERVER_CXX PRIVATE ${FMT_LINK_LIB})
    target_link_libraries(LAB3_SERVER_CXX PRIVATE ${CMAKE_THREAD_LIBS_INIT})

    file(GLOB_RECURSE LAB3_CLIENT_SRC_CXX CONFIGURE_DEPENDS src/cpp/fclient.cpp src/cpp/*.hpp)
    add_executable(LAB3_CLIENT_CXX ${LAB3_CLIENT_SRC_CXX})
    target_link_libraries(LAB3_CLIENT_CXX PRIVATE ${FMT_LINK_LIB})

    file(GLOB_RECURSE LAB3_SERVER_SRC_C CONFIGURE_DEPENDS src/c/fserver.c src/c/*.h)
    add_executable(LAB3_SERVER_C ${LAB3_SERVER_SRC_C} )

    file(GLOB_RECURSE LAB3_CLIENT_SRC_C CONFIGURE_DEPENDS src/c/fclient.c src/c/*.h)
    add_executable(LAB3_CLIENT_C ${LAB3_CLIENT_SRC_C} )
elseif (WIN32)
    message(WARNING "win32 don't have sys/socket.h")
endif ()


